package ch8.ex12;

public class MultiInheritance {
	public static void x(CanFight t){ t.fight(); }
	public static void y(CanSwim t) { t.swim(); }
	public static void z(CanFly t)  { t.fly(); }
	public static void t(CanClimb t)  { t.climb(); }
	public static void v(ActionCharacter t ){ t.fight();}
	public static void main(String... args){
		Hero h = new Hero();
		x(h);
		y(h);
		z(h);
		t(h);
		v(h);
	}
}

class Hero extends ActionCharacter implements CanFight, CanFly, CanSwim, CanClimb{

	public void swim(){}
	public void fly(){}
	public void climb(){}
	
}